package cn.samler.diandi.api.model.io.request.post;

import cn.samler.diandi.api.model.io.request.pub.Page;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PostCommentList {
    @NotNull(message = "post id must be not null")
    @Min(value = 1, message = "post id 有误")
    private Integer pid;

    @Valid
    @NotNull(message = "page must be not null")
    private Page page;
}
